<title>Items</title>
	  <?
	include 'conexion.php';
      extract($_POST);
    extract($_GET);
	  if ($valo=="" or $sugun==""){?>
	  
	  <script language="JavaScript" type="text/JavaScript">
alert('�FALTAN DATOS VERIFICA!')
window.self.location="item.php?<? echo 'valo='.$valo.'&sugun='.$sugun;?>"

</script>
	  
	   <? }	 else {
	 //$base="ucg - copia";
	$tabla="items";
	//$conexion=mysql_connect("localhost","root","");
	//mysql_select_db($base,$conexion);  
	mysql_query("INSERT $tabla VALUES('$sugun','$valo')",$conexion); ?>

 <script language="JavaScript" type="text/JavaScript">
alert('Items <? echo $sugun ?> Guardada!')
window.self.location="item.php"

</script>
<? } ?>
	</body>
</html>
